package com.zte.claa.inficombo.csa.app.service.rptparse;

import java.util.HashMap;
import java.util.Map;

/**
 * 应用层命令
 * 
 * 和设备控制模型对应
 * 
 * @author 0283000115
 *
 */
public class AppCommand {
	private String cmd;
	private Map<String, Object> paras;
	
	public AppCommand(){
		this.paras = new HashMap<String, Object>();
	}

	public String getCmd() {
		return cmd;
	}

	public void setCmd(String cmd) {
		this.cmd = cmd;
	}

	public Map<String, Object> getParas() {
		return paras;
	}

	public void setParas(Map<String, Object> paras) {
		this.paras = paras;
	}

	public void appendPara(String pn, Object pv){
		this.paras.put(pn, pv);
	}
	
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("cmd=").append(cmd).append(", ");
		sb.append("paras=").append(paras);
		return sb.toString();
	}
}
